# Contributor: Jordan Christiansen <xordspar0@gmail.com>
# Maintainer: Jordan Christiansen <xordspar0@gmail.com>
pkgname=crispy-doom
pkgver=7.0
pkgrel=0
pkgdesc="Limit-removing enhanced-resolution Doom source port based on Chocolate Doom"
url="https://github.com/fabiangreffrath/crispy-doom"
arch="all"
license="GPL-2.0-or-later"
makedepends="autoconf automake sdl2-dev sdl2_mixer-dev sdl2_net-dev libsamplerate-dev libpng-dev"
subpackages="$pkgname-doc"
options="!check" # upstream has no tests
source="https://github.com/fabiangreffrath/crispy-doom/archive/refs/tags/crispy-doom-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgname-$pkgver/"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
d2e182f8a81b164d09ff0ed2bb7f507349f9edf55b3d1a62b54a0cc76dd3b407722704dd3e58d5736018807c8c39147401972e05f0d6ebb8606d016e2b68b37f  crispy-doom-7.0.tar.gz
"
